package oa.hleast.xswl.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * 应用类型模版枚举
 */
@NoArgsConstructor
@AllArgsConstructor
@Getter
public enum AppTypeKeyEnum {
    /**
     *
     */
    ONE_PHONE("one_phone_apps_icon_key", ""),
    ONE_CODE("one_code_apps_icon_key", ""),
    MALL("mall_icon_key", ""),
    ONE_PHONE_PLAY("one_phone_service_play", "游玩服务"),
    ONE_PHONE_EXPERIENCE("one_phone_server_experience", "游玩体验");

    private String key;
    /**
     * 用于前端展示的标题
     */
    private String showTitle;

    public static AppTypeKeyEnum getEnum(String enumName) {
        for (AppTypeKeyEnum value : AppTypeKeyEnum.values()) {
            if (value.name().equals(enumName)) {
                return value;
            }
        }
        return null;
    }
}
